﻿/*
 * Created by SharpDevelop.
 * User: IEscarro
 * Date: 8/28/2009
 * Time: 10:25 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;

namespace Miming.Util
{
	/// <summary>
	/// Description of ICommand.
	/// </summary>
	public interface ICommand
	{
		string Name {
			get;
			set;
		}
		
		void Run();
	}
	
	public abstract class AbstractCommand : ICommand
	{
		string name;
		
		public string Name {
			get { return name; }
			set { name = value; }
		}
		
		public AbstractCommand()
		{
		}
		
		public AbstractCommand(string name)
		{
			this.name = name;
		}
		
		public abstract void Run();
	}
}
